package cn.tedu.csmall.product.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 添加相册的DTO类
 *
 * @author Chen
 */
@Data
public class AlbumAddNewDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 4275530685191668763L;
    /**
     * 相册名称
     */
    @NotNull(message = "添加相册失败，必须提交相册名称！")
    @Schema(description = "相册名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "小米手机的相册")
    private String name;
    /**
     * 相册简介
     */
    @NotNull(message = "添加相册失败，必须提交相册简介！")
    @Schema(description = "相册名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "小米手机的相册简介")
    private String description;
    /**
     * 排序序号
     */
    @NotNull(message = "添加相册失败，必须提交排序序号！")
    @Schema(description = "排序序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "99")
    private Integer sort;
}
